.todo-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.todo-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 2.5em;
}

.todo-form {
  display: flex;
  gap: 10px;
  margin-bottom: 2rem;
}

.todo-input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.todo-input:focus {
  outline: none;
  border-color: #3498db;
}

.add-button {
  padding: 12px 25px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.add-button:hover {
  background: #2980b9;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.button {
  flex: 1;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  background: #f0f0f0;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.button.active,.button:hover {
  background: #3498db;
  color: white;
}

.todo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.todo-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.todo-item.completed {
  background: #ecf6fd;
}

.todo-item.completed .todo-text {
  text-decoration: line-through;
  color: #95a5a6;
}

.checkbox-container {
  position: relative;
  margin-right: 15px;
}

.todo-checkbox {
  opacity: 0;
  position: absolute;
}

.checkmark {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #3498db;
  border-radius: 4px;
  cursor: pointer;
}

.todo-checkbox:checked ~ .checkmark {
  background: #3498db;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.todo-checkbox:checked ~ .checkmark:after {
  display: block;
}

.todo-text {
  flex: 1;
  font-size: 16px;
  color: #2c3e50;
}

.delete-button {
  background: none;
  border: none;
  color: #e74c3c;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
}

.todo-item:hover .delete-button {
  opacity: 1;
}

/* Animation */
.item-enter {
  opacity: 0;
  transform: translateX(-30px);
}

.item-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: all 300ms ease-in;
}

.item-exit {
  opacity: 1;
}

.item-exit-active {
  opacity: 0;
  transform: translateX(30px);
  transition: all 300ms ease-out;
}